package com.software.zhemo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

    private EditText edt_user;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //获取view中用户名的编辑框并设置值
        initViews();

        edt_user.setText("12131321");
    }

    private void initViews() {
        edt_user = findViewById(R.id.edt_user);
    }
}